.class Lcom/nemustech/regina/widgets/clock/ClockWidget$8;
.super Ljava/lang/Object;
.source "ClockWidget.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/regina/widgets/clock/ClockWidget;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 0
    .parameter

    .prologue
    .line 702
    iput-object p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$8;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .prologue
    .line 705
    const-string v2, "com.nemustech.regina.weatherserver"

    .line 706
    .local v2, weatherServerPackageName:Ljava/lang/String;
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$8;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$8;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v4}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v3, v4, v2}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getCurrentVersion(Landroid/content/Context;Ljava/lang/String;)I

    move-result v1

    .line 707
    .local v1, version:I
    const/16 v3, 0x1fc

    if-ge v1, v3, :cond_0

    .line 708
    const-string v0, "This Feature is available in Regina WeatherServer later 0.5.8 version, Please update your Regina WeatherServer"

    .line 709
    .local v0, text:Ljava/lang/String;
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$8;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v3}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v3

    invoke-static {v3, v0}, Lcom/nemustech/regina/RUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)Landroid/widget/Toast;

    .line 713
    .end local v0           #text:Ljava/lang/String;
    :goto_0
    return-void

    .line 711
    :cond_0
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$8;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v3}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v3

    check-cast v3, Lcom/nemustech/regina/ReginaLauncher;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$8;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/ReginaLauncher;->showWeatherUpdatePeriodSettingDialog(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    goto :goto_0
.end method
